package com.lzy.webapi.response;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单列表返回对象
 * Created by WIN7 on 2017/12/5.
 */
public class OrderProductListResponse implements Serializable{
    private static final long serialVersionUID = -1889406082636180722L;
    /**
     * 订单号
     */
    private Long orderId;

    /**
     * 状态（1-待支付，2-已完结，3-已关闭）
     */
    private Integer status;

    /**
     * 总价
     */
    private BigDecimal moneyCount;

    /**
     * 创建时间
     */
    private String createTime;

    //移动端展示添加字段
    private String orderTime;//下单时间
    private String statusName;//订单状态名称
    private BigDecimal orderAmount;//订单金额
    //产品信息
    private String productImage;//产品封面
    private String productName;//产品名称

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        if (status!=null){
            if (status.equals(1))
                this.statusName = "待支付";
            if (status.equals(2))
                this.statusName = "购买成功";
            if (status.equals(3))
                this.statusName = "已关闭";
        }
        this.status = status;
    }

    public BigDecimal getMoneyCount() {
        return moneyCount;
    }

    public void setMoneyCount(BigDecimal moneyCount) {
        this.moneyCount = moneyCount;
        this.orderAmount = moneyCount;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
        this.orderTime = createTime;
    }

    public String getProductImage() {
        return productImage;
    }

    public void setProductImage(String productImage) {
        this.productImage = productImage;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }
}
